<template>
  <router-link :to="property">
    {{label}}
  </router-link>
</template>

<script>
export default {
  name: 'linkLabel',
  props: ['routerName', 'searchObj', 'label'],
  computed: {
    property() {
      return {
        name: this.routerName,
        params: {
          searchKey: this.searchObj
        }
      }
    }
  }
}
</script>

<style scoped>

</style>
